import Mock from 'mockjs';

const data=Mock.mock({
    'list|8':[{
        'con':'@cword(5,10)',
        'img':'@image(100x100,@color)'
    }]
})

box.innerHTML=data.list.map(item=>{
    return `
    <dl>
        <dt><img src="${item.img}" alt=""></dt>
        <dd>${item.con}</dd>
    </dl>
    
    `
}).join('')